import {
  request
} from "../utils/request.js"
// 主页大图
const HomeListApi = (data) => {
  return request("/ztmuseum/api/home/getBaseInfo", data, "get")
}
// 付费展览列表
const HomeactivityLIST = (data) => {
  return request("/ztmuseum/api/home/wxTollExhibition", data, "get")
}
// 活动列表  历史活动
const HdlistAPi = (data) => {
  return request("/ztmuseum/api/home/wxTollActivities", data, "get")
}






//授权获取用户信息 以及头像
const Minelogin = (data) => {
  return request("/ztmuseum/api/wx/authorize", data, "post")
}
//微信授权
const authorize = (data)=>{
    return request("/ztmuseum/api/wx/authorizePhone", data, "post")
}










// 登陆授权获取用户信息
const login = (data) => {
  return request("/ztmuseum/api/wx/login", data, "post")
}
//我的-我的订单
const findUserOrder = (data) => {
  return request("/ztmuseum/api/wx/findUserOrder", data, "post")
}
//我的-我的订单-查看详情
const Myoderxq = (data) => {
  return request("/ztmuseum/api/wx/findUserActivityOrderDetail", data, "get")
}
//我的-我的预约
const Myoderyy = (data) => {
  return request("/ztmuseum/api/reservation/findWxReservationPeople", data, "post")
}
//首页-大图进立即预约 个人预约提交
const bookNow = (data) => {
  return request("/ztmuseum/api/reservation/bookNow", data, "post")
}
//立即预约页面信息
const LjoderList = (data)=>{
    return request ("/ztmuseum/api/reservation/findWeekStockByDate",data,"post")
}
//获取预约场次 - 场次
const getyyList = (data)=>{
    return request("/ztmuseum/api/reservation/findWeekStockByDay",data,"post")
}
//校验省份证信息
const legitimateIdCard = (data)=>{
  return request("/ztmuseum/api/reservation/legitimateIdCard",data,"get")
}
//团队预约提交
const bookTeamNow  = (data)=>{
    return request("/ztmuseum/api/reservation/bookTeamNow",data,"post")
}
//导览详情
const category = (data)=>{
    return request("/ztmuseum/api/exhibition/getExhibitionInfo",data,"get")
}
//导览详情页
const deatilxiangqing= (data) =>{
    return request("/ztmuseum/api/toll/exhibition/getTollExhibitionInfo",data,"get")
}
//提交订单
const tijiao =(data) =>{
  return request("/ztmuseum/api/toll/exhibition/addExhibitionOrder",data,"post")
}
//获取展览提交订单页面信息
const getToll = (data)=>{
  return request("/ztmuseum/api/toll/exhibition/getTollExhibitionConfirm",data,"get")
}
//获取活动详情页的数据
const gethdLIst = (data)=>{
    return request("/ztmuseum/api/toll/activity/getTollExhibitionInfo",data,"get")
}
//历史活动 活动列表
const activitiesof = (data)=>{
    return request ("/ztmuseum/api/toll/activity/findTollActivity",data,"get")
}
//首页历史活动 进详情页  提交活动订单
const subactivitiesof = (data)=>{
    return request ("/ztmuseum/api/toll/activity/addActivityOrder",data,"post")
}
// 获取导览类型
const getExhibitionType = () => {
  return request('/ztmuseum/api/exhibition/typeSelector',{}, "get")
}
//展览列表
const getExhibitionList = (data) => {
  return request('/ztmuseum/api/exhibition/findExhibitionExhibit', data, 'get')
}
//会员卡信息
const vipmessage =(data) =>{
    return request("/ztmuseum/api/wx/findUserMembershipCard",data,'get')
}
//微信授权手机号
const wxtel =(data)=>{
    return request ("/ztmuseum/api/wx/authorizePhone" ,data,'get')
}
export {
  HomeListApi,
  HomeactivityLIST,
  HdlistAPi,
  Minelogin,
  login,
  findUserOrder,
  Myoderxq,
  Myoderyy,
  bookNow,
  LjoderList,
  getyyList,
  legitimateIdCard,
  bookTeamNow,
  category,
  deatilxiangqing,
  tijiao,
  getToll,
  gethdLIst,
  activitiesof,
  subactivitiesof,
  getExhibitionType,
  getExhibitionList,
  vipmessage,
  wxtel,
  authorize
}